﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Collections;

namespace weba
{
    public partial class importwz : System.Web.UI.Page
    {
        public int ct { get; set; }
    public    System.Collections.Hashtable ht = new Hashtable();
        protected void Page_Load(object sender, EventArgs e)
        {

        }

        protected void Button1_Click(object sender, EventArgs e)
        {
           ht.Clear();
            for (int i = 0; i <= GridView1.Rows.Count - 1; i++)
            {
                CheckBox CheckBox = (CheckBox)GridView1.Rows[i].FindControl("CheckBox1");
                if (CheckBox.Checked==true)
                {
                
                CheckBox.Checked = true;
                string tjd = GridView1.Rows[i].Cells[4].Text.ToString();
                string twd = GridView1.Rows[i].Cells[5].Text.ToString();
                ht.Add(tjd, twd);
                }
            }
            ct=ht.Count;
            Label1.Text = "一共" + ht.Count.ToString() + "个";
         //   this.ClientScript.RegisterStartupScript(this.GetType(), "alert", "$(function(){alert(point);});", true);
           // Response.Redirect(Request.Url.ToString());
        }
    }
}